package factory.components;

import core.Component;
import core.Coordinate;
import factory.ComponentInterface;

public class RailMountedGantry implements ComponentInterface {
	private byte orientation; // 0-North; 1-East; 2-South; 3-West;
	private Component component;

	public RailMountedGantry() {
		component = new Component(new Coordinate(0, 0), new Coordinate(0, 0));
		this.orientation = 0;
	}

	public RailMountedGantry(Coordinate position, Coordinate size,
			byte orientation) {
		component = new Component(position, size);
		this.orientation = orientation;
	}

	public Coordinate getSize() {
		return component.getSize();
	}

	public void setSize(Coordinate size) {
		component.setSize(size);
	}

	public byte getOrientation() {
		return orientation;
	}

	public void setOrientation(byte orientation) {
		this.orientation = orientation;
	}

	public Coordinate getPosition() {
		return component.getPosition();
	}

	public void setPosition(Coordinate position) {
		component.setPosition(position);
	}

}